import request from '@/utils/request'
// 登录
export function loginAPI(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

// 获取个人档案
export function getInfoAPI() {
  return request({
    method: 'POST',
    url: '/sys/profile'
  })
}

// 获取基本信息
export function getUserInfoAPI(id) {
  return request({
    method: 'get',
    url: '/sys/user/' + id
  })
}
